<?php
class Admin_Controller extends CI_Controller
{

    public function __construct() {
        parent::__construct();
        $this->_load();
    }
    
    public function fill_phrase($sview, array $adata_view,array $aphrase = null)
    {
        parent::fill_phrase($sview, $adata_view, $aphrase);
    }
    
    private function _check_login(){
        if(!(bool) parent::_is_login() || !$this->_ouser->member_type == ADMIN){
            
//            redirect("user/admincp/index");
        }
    }
    
    protected function _redirect_index(){
        $CI = & get_instance();
        redirect($CI->router->module . "/admincp/");
    }


    private function _load(){
        $this->_check_login();
        $this->_stemplate = 'default';
        $this->config->set_item('language', $this->_slang_name);
    }
}
?>
